package stool.compositepattern;

/**
 * @Author Felix YF Dong
 * @Date 2021/5/11
 */
public abstract class Company {

    private String name;

    public Company(String name) {
        this.name = name;
    }

    public abstract void create(Company company);

    public abstract void find(int depth);

    public abstract void delete(Company company);

    /**
     * 履行职责
     */
    public abstract void lineOfDuty();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
